import layoutEnptyPage from '@/layout/header-aside'
const meta = { auth: false }

export default {
    path: '/post',
    name: 'post',
    meta,
    redirect: { name: 'post-index' },
    component: layoutEnptyPage,
    children: (pre => [
        {
            path: 'index',
            name: `${pre}index`,
            component: () => import('@/pages/post/index'),
            meta: { ...meta, title: '帖子管理' }
        },{
            path: 'detail',
            name: `${pre}detail`,
            component: () => import('@/pages/post/detail'),
            meta: { ...meta, title: '帖子详细' }
        },
    ])('post-')
}
